//
//  TopSearchNavView.h
//  HuaXin
//
//  Created by 江伟 on 2018/11/1.
//

#import <UIKit/UIKit.h>
#import "BaseView.h"
@interface TopSearchNavBtnView : BaseView
@property (nonatomic,strong) UIButton *searchBtn;
@property (nonatomic,strong) UIButton *leftBtn;
@property (nonatomic,strong) UIButton *rightBtn;

/**
 初始化一个可以渐变的透明假导航
 
 @param frame frame
 @param leftImg 未实现有左按钮
 @param searchImg 放大镜的图片
 @param str 搜索占位文字
 @param rightImg 右图片没有传nil
 @return 返回
 */
- (instancetype)initWithFrame:(CGRect)frame
                      leftImg:(UIImage *)leftImg
                    searchImg:(UIImage *)searchImg
            searchPlaceholder:(NSString *)str
                     rightImg:(UIImage *)rightImg;

/**
 移动scro时改变nav透明度

 @param offset 传入移动距离
 */
- (void)moveTopNavViewAlphaOffset:(CGFloat)offset;
@end
